package com.tte.common.utils.file;

import java.io.File;
import java.io.InputStream;

/**
 * 文件传输工具
 */
public interface FileTransferUtils {

    String getType();

    boolean isConnect();

    boolean checkParams();

    String uploadFile(String localFile) throws Exception;
    String uploadFile(InputStream inputStream, String newName) throws Exception;
    String uploadFile(File file, String newName) throws Exception;
    InputStream downloadFile(String savePath) throws Exception;
    Byte[] downloadByte(String savePath) throws Exception;
    boolean downloadFile(String savePath,String targetPath) throws Exception;

}